package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.domain.edit.NewPassword;
import com.example.domain.paging.PageHelper;


import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2024-04-17
 */
public interface IUserService extends IService<User> {
    //增加
    boolean save(User user);
    //查找所有
    List<User> list();

    boolean modify(User user);

    //删除
    boolean delete(Integer id);
    IPage<User> getPage(Integer currentPage, Integer pageSize);
    IPage<User> getPage(Integer currentPage, Integer pageSize,User user);

    List<User> queryUsers(String username, String phone, Integer status);

    int editPassword(NewPassword newPassword);

    List<User> findAll(PageHelper pageHelper);

}
